package cards;


public class card
{

    int value;
    String suit;

    public card()
    {
    }

    public void setValue(int value)
    {
        this.value = value;
    }

    public void setSuit(String suit)
    {
        this.suit = suit;
    }

    public int getValue()
    {
        return value;
    }

    public String getSuit()
    {
        return suit;
    }

    public int getSuitValue()
    {
        if(suit.equals("Spades"))
        {
            return 0;
        }
        if(suit.equals("Clubs"))
        {
            return 1;
        }
        if(suit.equals("Diamonds"))
        {
            return 2;
        }
        return !suit.equals("Hearts") ? -1 : 3;
    }

    public String toString()
    {
        return "{" + value + " of " + suit + "}";
    }
}
